package com.zengguang.testkaoshi.services.impl;

import com.zengguang.testkaoshi.dao.LoginlogDao;
import com.zengguang.testkaoshi.pojo.Loginlog;
import com.zengguang.testkaoshi.services.ILoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginLogService implements ILoginLogService {
    @Autowired
    private LoginlogDao loginlogDao;
    //登录日志插入
    @Override
    public int insertLoginlog(Loginlog loginlog) {
       int returnInt=loginlogDao.insertloginlog(loginlog);
        return returnInt;
    }
    //登录日志查询
    @Override
    public List<Loginlog> getWhereAll(Loginlog loginlog) {
        return loginlogDao.getWhereAll(loginlog);
    }



}
